$OpenBSD: patch-src_sqlite_h_in,v 1.5 2012/11/29 05:32:04 espie Exp $
--- src/sqlite.h.in.orig	Thu Oct  4 21:49:22 2012
+++ src/sqlite.h.in	Thu Nov 29 06:30:18 2012
@@ -33,6 +33,7 @@
 #ifndef _SQLITE3_H_
 #define _SQLITE3_H_
 #include <stdarg.h>     /* Needed for the definition of va_list */
+#include <stdint.h>
 
 /*
 ** Make sure we can call this stuff from C++.
@@ -238,6 +239,9 @@ typedef struct sqlite3 sqlite3;
 ** sqlite3_uint64 and sqlite_uint64 types can store integer values 
 ** between 0 and +18446744073709551615 inclusive.
 */
+typedef int64_t sqlite_int64;
+typedef uint64_t sqlite_uint64;
+#if 0
 #ifdef SQLITE_INT64_TYPE
   typedef SQLITE_INT64_TYPE sqlite_int64;
   typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;
@@ -247,6 +251,7 @@ typedef struct sqlite3 sqlite3;
 #else
   typedef long long int sqlite_int64;
   typedef unsigned long long int sqlite_uint64;
+#endif
 #endif
 typedef sqlite_int64 sqlite3_int64;
 typedef sqlite_uint64 sqlite3_uint64;
